package com.ruoyi.supermarket.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 分类对象 category
 * 
 * @author 李其伟
 * @date 2023-08-11
 */
public class Category extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private Long id;

    /** 父主键 */
    @Excel(name = "父主键")
    private Long pId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 分类级别 */
    @Excel(name = "分类级别")
    private Long level;

    /** 关键字 */
    @Excel(name = "关键字")
    private String keywords;

    /** 描述 */
    private String description;

    /** 图片 */
    @Excel(name = "图片")
    private String pic;

    /** 上架状态 */
    @Excel(name = "上架状态")
    private Integer publishStatus;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setPublishStatus(Integer publishStatus) 
    {
        this.publishStatus = publishStatus;
    }

    public Integer getPublishStatus() 
    {
        return publishStatus;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pId", getpId())
            .append("name", getName())
            .append("level", getLevel())
            .append("keywords", getKeywords())
            .append("description", getDescription())
            .append("pic", getPic())
            .append("publishStatus", getPublishStatus())
            .append("sort", getSort())
            .toString();
    }
}
